package com.hulizuofang.wol.chat.client.action;

import java.io.Serializable;

import com.gwtplatform.dispatch.shared.Result;

public class SendChatResult implements Result, Serializable {

	private static final long serialVersionUID = 1L;
	private boolean delivered;

	protected SendChatResult() {}
	
	public SendChatResult(boolean delivered) {
		this.delivered = delivered;
	}
	
	public void workResult(SendChatResultWorker sendChatResultWorker) {
		sendChatResultWorker.work(delivered);
	}

	public interface SendChatResultWorker {
		void work(boolean delivered);
	}
}
